package com.base_data_handler.task;

import java.util.logging.Logger;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.base_data_handler.function.weather.ChinaWeatherImage;
import com.base_data_handler.function.weather.RealForcastLifeWarnFromChinaWeather;
/**
 * 获取中国天气网1小时实况温度图片并入库1小时更新
 * @author Administrator
 *
 */
public class ChinaWeatherGetRealTemp2Db  implements Job {

	private static final Logger log = Logger.getLogger(ChinaWeatherGetRealTemp2Db.class.getName());
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		// 调度任务参数
//		JobDataMap dataMap = context.getJobDetail().getJobDataMap();
//		String xxx = (String) dataMap.get("xxx");
			
		try {
			log.info("获取中国天气网1小时实况温度图片并入库1小时更新");
			ChinaWeatherImage.getRealTemp();
		} catch (Exception e) {
			log.info("获取中国天气网1小时实况温度图片并入库1小时更新");
			e.printStackTrace();
		}
		
	}
}
